package DesignPatern.A10_责任链模式.QSB.A02_责任链模式;

/**
 * @Author: Du
 * @Date: 2021/7/30 10:01
 */
public class Husband extends Handler
{
    
    public Husband()
    {
        super(Handler.HUSBAND_LEVEL_REQUEST);
    }
    
    @Override
    protected void response(IWomen women)
    {
        System.out.println("--妻子向丈夫请示--");
        System.out.println(women.getRequest());
        System.out.println("--丈夫同意--");
    }
}
